#ifndef WIDGETINVERSIONFORM_H
#define WIDGETINVERSIONFORM_H

#include <QWidget>
#include <QChart>
#include <QSerialPort>

#include "inversionargument.h"
#include "lidarclient.h"

namespace Ui {
class WidgetInversionForm;
}

class WidgetInversionForm : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetInversionForm(QWidget *parent = nullptr);
    ~WidgetInversionForm();

private slots:
    void Slot_inersionCall();

private:
    //void InitChart_Temperature_Humidity();

    void formInit();

    Ui::WidgetInversionForm *ui;
    InversionArgument* m_inversion;
    //激光雷达的client和太阳辐射计的port，方便在数据反演时获得一些参数信息，注意在在使用前需要确定是否连接成功以及是否为nullptr
    QSharedPointer<LidarClient> m_lidarClient;
    QSharedPointer<QSerialPort> m_solorPort;

    QChart *m_chart;
signals:
    void Sig_beginInversion();
    void Sig_solorRadioMeterGetSTA();
    void Sig_lidarGetPMTState();

};

#endif // WIDGETINVERSIONFORM_H
